function lsLoader(t) {//页面加载 遮住主体内容
  var loader_div = document.createElement("div");
  var toast_body = document.getElementsByClassName('ls_maincont');
  loader_div.className = "loader_div";
  var loader_html = '<div class="c_loader_div">' +
    '<div class="loadingPointer"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>' +
    '<p>' + (t || '加载中...') + '</p>'
  '</div>';
  loader_div.innerHTML = loader_html;
  toast_body[0].appendChild(loader_div);//
  loader_div.className = "loader_div open";
}
function lsLoaderFiles(t) {//页面加载 遮住全部
  var loader_div = document.createElement("div");
  var toast_body = document.getElementsByTagName('body');
  loader_div.className = "loader_div LoaderFiles";
  var loader_html = '<div class="c_loader_div">' +
    '<div class="loadingPointer"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div>' +
    '<p>' +( t || '加载中...') + '</p>'
  '</div>';
  loader_div.innerHTML = loader_html;
  toast_body[0].appendChild(loader_div);//
  loader_div.className = "loader_div LoaderFiles open";
}
function removeLoader() {//移除loader节点
  var t = document.getElementsByClassName("loader_div ")[0];
  var p = document.getElementsByClassName("ls_maincont ")[0];
  // console.log(t);
  t ? p.removeChild(t) : ""
}

function removeNode(t, time) {//移除当前节点
  var node_body = document.getElementsByTagName('body');
  var busuccess = setTimeout(function () {
    if (!node_body[0].contains(t)) {
      return
    }
    node_body[0].removeChild(t);
    return true;
  }, time);
  if (busuccess) {
    return true;
  }
}